Skip to the content.

//[](../../../index.html)/[pro.streem.sdk](../index.html)/[Streem](index.html)/[startStreemActivity](start-streem-activity.html)

startStreemActivity

[androidJvm]\

@MainThread

abstract fun startStreemActivity(currentFragment: Fragment, localParticipantSessionConfig: Streem.SessionConfig, remoteParticipant: Streem.ParticipantRequest? = null, errorCallback: (Throwable) -> Unit? = null)

Opens a room with the participants in a new full-screen Activity.

Parameters

androidJvm

   
currentFragment this Fragment’s onActivityResult method will be called with the room’s exit code.
localParticipantSessionConfig the SessionConfig of the local user.
remoteParticipant the remote participant to invite to the room.
errorCallback a function that is called with a Throwable when an error occurs.

[androidJvm]\

@MainThread

abstract fun startStreemActivity(currentActivity: Activity, localParticipantSessionConfig: Streem.SessionConfig, remoteParticipant: Streem.ParticipantRequest? = null)


Deprecated

As of v0.10.0, please use new method with errorCallback

Replace with

startStreemActivity(currentActivity, localParticipantSessionConfig, remoteParticipant) { error -> }

Opens a room with the participants in a new full-screen Activity.

Parameters

androidJvm

   
currentActivity this Activity’s onActivityResult method will be called with the room’s exit code.
remoteParticipant the remote participant to invite to the room.

[androidJvm]\

@MainThread

abstract fun startStreemActivity(currentActivity: Activity, localParticipantSessionConfig: Streem.SessionConfig, initialCallState: InitialCallState? = null, remoteParticipant: Streem.ParticipantRequest? = null, referenceId: String? = null, integrationId: String? = null, errorCallback: (Throwable) -> Unit? = null)


Deprecated

As of v0.26.0, please use new suggested way to start a Streem via Activity Results API outlined in the ReadMe


Opens a room with the participants in a new full-screen Activity.

Parameters

androidJvm

   
currentActivity this Activity’s onActivityResult method will be called with the room’s exit code.
localParticipantSessionConfig the SessionConfig of the local user.
initialCallState specifies initial state of mute/camera/speaker when the call starts
remoteParticipant the remote participant to invite to the room.
referenceId the reference ID to use for the room, or null if none.
integrationId the integration ID to use for the room, or null if none.
errorCallback a function that is called with a Throwable when an error occurs.

[androidJvm]\

@MainThread

abstract fun startStreemActivity(currentFragment: Fragment, localParticipantSessionConfig: Streem.SessionConfig, remoteParticipant: Streem.ParticipantRequest? = null)


Deprecated

As of v0.10.0, please use new method with errorCallback

Replace with

startStreemActivity(currentFragment, localParticipantSessionConfig, remoteParticipant) { error -> }

Opens a room with the participants in a new full-screen Activity.

Parameters

androidJvm

   
currentFragment this Fragment’s onActivityResult method will be called with the room’s exit code.
remoteParticipant the remote participant to invite to the room.

[androidJvm]\

@MainThread

abstract fun startStreemActivity(currentActivity: Activity, invitation: Streem.StreemInvitation, localParticipantSessionConfig: Streem.SessionConfig, errorCallback: (Throwable) -> Unit? = null)


Deprecated

As of v0.14.0, please start Streem with registerForActivityResult(StartStreemFromInvitation())


Opens or joins a room with the current invitation in a new full-screen Activity.

Parameters

androidJvm

   
invitation the invitation to use.
currentActivity this Activity’s onActivityResult method will be called with the room’s exit code.
localParticipantSessionConfig the SessionConfig of the local user.
errorCallback a function that is called with a Throwable when an error occurs.

[androidJvm]\

@MainThread

abstract fun startStreemActivity(currentFragment: Fragment, invitation: Streem.StreemInvitation, localParticipantSessionConfig: Streem.SessionConfig, errorCallback: (Throwable) -> Unit? = null)


Deprecated

As of v0.14.0, please start Streem with registerForActivityResult(StartStreemFromInvitation())


Opens or joins a room with an invitation code in a new full-screen Activity.

Parameters

androidJvm

   
invitation the invitation to use
currentFragment this Fragment’s onActivityResult method will be called with the room’s exit code.
localParticipantSessionConfig the SessionConfig of the local user
errorCallback a function that is called with a Throwable when an error occurs.